package com.nbclass.controller;

import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/*
       AUTHOR: Jarvie -> YYDS
  CREATE TIME: 2024/9/13   
*/
@Controller
public class LoginController {

    @RequestMapping("/Mylogin")
    public String loginView(){
        return "/views/hello";
    }
    @RequestMapping("/main")
    public String mainView(){
        return "/views/main";
    }
    @RequestMapping("/f1")
    public String mainViewf(){
//        response.setHeader("X-Frame-Options","ALLOWALL");
        HttpHeaders headers = new HttpHeaders();
        headers.add("X-Frame-Options","ALLOWALL");
        return "/views/f1";
    }
}
